package org.gd.hellojson.jackson;

import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.node.ArrayNode;
import org.codehaus.jackson.node.JsonNodeFactory;
import org.codehaus.jackson.node.ObjectNode;

import java.io.IOException;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-09-17 12:21
 */
public class jacksonTest1 {

    public static void main(String[] args) throws IOException {
        JsonNodeFactory jsonNodeFactory = JsonNodeFactory.instance;
        ArrayNode arrayNode = new ArrayNode(jsonNodeFactory);
        arrayNode.add("");
        arrayNode.add(12);





        System.out.println(new ObjectMapper().writer().writeValueAsString(arrayNode));
    }
}
